
package dao.core;

import dao.jpa.JPADaoFactory;
import dao.usuario.UsuarioDao;


public abstract class DaoFactory {
         
    public static final int JPA = 1;
    public static final int JDBC = 2;
    
    public static DaoFactory getDaoFactory(int factory){
        switch(factory){
            case JPA:
                return new JPADaoFactory();
           // case JDBC:
           //     return new JDBCDaoFactory();
        }
        return null;
    }
    
    public abstract UsuarioDao getUsuarioDao();
    
}
